package com.ganzalang.gmall.command.service.impl;

import com.ganzalang.gmall.command.api.dto.IncreaseInventoryDTO;
import com.ganzalang.gmall.command.api.dto.ProductVariantInventoryDTO;
import com.ganzalang.gmall.command.domain.ProductVariantInventory;
import com.ganzalang.gmall.command.service.ProductVariantInventoryService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2021/3/13 11:50
 */
@Slf4j
@Service("productVariantInventoryService")
@RequiredArgsConstructor
public class ProductVariantInventoryServiceImpl implements ProductVariantInventoryService {
    @Override
    public List<ProductVariantInventoryDTO> getProductInventoryByProductId(Long shopId, Long productId) {
        return null;
    }

    @Override
    public Boolean updateInventoryToDB(Long shopId, List<ProductVariantInventory> productVariantInventories) {
        return null;
    }

    @Override
    public ProductVariantInventoryDTO getVariantInventory(Long shopId, Long productId, Long variantId) {
        return null;
    }

    @Override
    public Boolean withholdingDecreaseInventory(Long shopId, Long productId, Long variantId, Integer quantity) {
        return null;
    }

    @Override
    public Boolean rollbackWithholdingDecreaseInventory(List<IncreaseInventoryDTO> increaseInventoryDTOS) {
        return null;
    }

    @Override
    public Boolean verifyInventory(Long shopId, Long productId, Long variantId, Integer quantity) {
        return null;
    }
}
